<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;

class HospitalAppoint extends Model
{
	use HasDateTimeFormatter;
    protected $guarded=[];

    protected $table = 'eb_hospital_appoint';
    public static $typeTxt = [
        1 => '儿童体检',
        2 => '疫苗服务',
        8 => '入托体检',
        5 => '建册预约',
        6 => '领取叶酸预约',
        3 => '微量元素',
        7 => '两癌筛查',
        9 => '核酸检测',
        10 => '盆底功能筛查及治疗',
        11 => '冬病夏治三伏贴',
        12 => '儿童推拿门诊'
    ];



   public function intervals()
   {
       return $this->hasMany(HospitalAppointInterval::class,'hospital_appoint_id');
   }
   public function hospital()
   {
       return $this->hasOne(Hospital::class,'id','hospital_id');
   }
}
